﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PS3Helpers;

namespace rfc1459.PS3Project.EditorIntegration
{
    public partial class P3PEditorControl : EditorControl
    {
        public P3PEditorControl()
        {
            InitializeComponent();
        }

        public override void LoadContents(string filename)
        {
            p3PEditor.PackageFile = new PS3PackageFile(filename);
        }

        public override void SaveContents(string filename)
        {
            PS3PackageFile packagefile = p3PEditor.PackageFile;
            packagefile.SaveFile(filename);
        }

        private void p3PEditor_ContentChanged(P3PEditor sender)
        {
            base.NotifyContentChanged();
        }
    }
}
